Learn R Programming

icosa (version 0.10.0)

[,gridlayer,ANY,missing-method: Extraction from a gridlayer using indices

Description

Shorthand to the subset function.

Function to replace specific elements in a gridlayer object

Usage

# S4 method for gridlayer,ANY,missing
[(x, i)

# S4 method for gridlayer,Extent,missing [(x, i)

# S4 method for gridlayer,ANY,ANY [(x, i) <- value

Arguments

x

(facelayer) The object to be subsetted.

i

(logical, numeric nor extent) The subscript vector, or extent, specifying the faces that are used for subsetting. As in subset.

value

The replacement values.

Value

The extraction methods return facelayer-class objects.

Details

All these methods are implementing direct replacement in the @values slot of a layer, depending on criteria used for subsetting.